@for /f "usebackq" %%i in (`mbld\incm.bat`) do @sed "s|\(.*[0-9]\.[0-9]\.[0-9]\.\)\([0-9]*\)|\1%%i|" < makefile.inc > mbld\makefile.inc
@cp mbld\makefile.inc makefile.inc

@for /f "usebackq" %%i in (`mbld\incr.bat`) do @sed "s|\(#define VER_PRODUCTBUILD_REVISION[ ]*\)\([0-9]*\)|\1%%i|" < WP7AccelerometerSensor.rc > mbld\WP7AccelerometerSensor.rc
@cp mbld\WP7AccelerometerSensor.rc WP7AccelerometerSensor.rc

@rm mbld\makefile.inc
@rm mbld\WP7AccelerometerSensor.rc
